package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 路由参数配置 实体
 * </p>
 *
 * @author 黄露
 * @since 2021-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "DeviceRouteConfig对象", description = "路由参数配置")
public class DeviceRouteConfig extends Model<DeviceRouteConfig> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "config_id", type = IdType.AUTO)
    private Integer configId;

    // "通道号")
    private Integer channel;

    // "路由id")
    private Integer routeId;

    // "量程(km)")
    private Integer endPosition;

    // "脉宽(ns)")
    private Integer pulseWidth;

    // "分辨率")
    private BigDecimal resolution;

    // "长度告警阈值")
    private BigDecimal lengthAlarm;

    // "衰耗紧急告警")
    private BigDecimal padControlUrg;

    // "衰耗主要告警")
    private BigDecimal padControlMain;

    // "衰耗次要告警")
    private BigDecimal padControlSec;

    // "衰耗提示告警")
    private BigDecimal padControlProm;

    // 长度告警对比次数
    private Integer compareTimes;

    // 精准测试
    private Boolean accurateMeasure;

    @Override
    public Serializable pkVal() {
        return this.configId;
    }

}
